import unittest
from Tools import Tools

suite = unittest.defaultTestLoader.discover(start_dir='./',pattern='TestCase.py')
Tools().test_report().run(suite)
# unittest.TextTestRunner().run(suite)
Tools().send_email(['baidu.log','baidu.html'])